package com.zl.airport_translate;

import java.text.SimpleDateFormat;

public class airport_translate
{
	public static void airport_translate(String ZH_airport,String[] Airport_Code)
	{   // A开头
		if     (ZH_airport.equals("阿里")) {Airport_Code[0]="NGQ";}
		else if(ZH_airport.equals("阿尔山")) {Airport_Code[0]="YIE";}
		else if(ZH_airport.equals("安庆")) {Airport_Code[0]="AQG";}
		else if(ZH_airport.equals("阿勒泰")) {Airport_Code[0]="AAT";}
		else if(ZH_airport.equals("安康")) {Airport_Code[0]="AKA";}
		else if(ZH_airport.equals("鞍山")) {Airport_Code[0]="AOG";}
		else if(ZH_airport.equals("安顺")) {Airport_Code[0]="AVA";}
		else if(ZH_airport.equals("阿克苏")) {Airport_Code[0]="AKU";}
		else if(ZH_airport.equals("阿拉善左旗")) {Airport_Code[0]="AXF";}
		else if(ZH_airport.equals("阿拉善右旗")) {Airport_Code[0]="RHT";}
		
		// B开头
		else if(ZH_airport.equals("包头")) {Airport_Code[0]="BAV";}
		else if(ZH_airport.equals("北海")) {Airport_Code[0]="BHY";}
		else if(ZH_airport.equals("北京")) {Airport_Code[0]="BJS";}
		else if(ZH_airport.equals("百色")) {Airport_Code[0]="AEB";}
		else if(ZH_airport.equals("保山")) {Airport_Code[0]="BSD";}
		else if(ZH_airport.equals("博乐")) {Airport_Code[0]="BPL";}
		else if(ZH_airport.equals("毕节")) {Airport_Code[0]="BFJ";}
		else if(ZH_airport.equals("巴彦淖尔")) {Airport_Code[0]="RLK";}
		
		//C开头
		else if(ZH_airport.equals("长治")) {Airport_Code[0]="CSX";}
		else if(ZH_airport.equals("池州")) {Airport_Code[0]="JUH";}
		else if(ZH_airport.equals("长春")) {Airport_Code[0]="CGQ";}
		else if(ZH_airport.equals("常州")) {Airport_Code[0]="CZX";}
		else if(ZH_airport.equals("昌都")) {Airport_Code[0]="BPX";}
		else if(ZH_airport.equals("朝阳")) {Airport_Code[0]="CHG";}
		else if(ZH_airport.equals("常德")) {Airport_Code[0]="CGD";}
		else if(ZH_airport.equals("长白山")) {Airport_Code[0]="NBS";}
		else if(ZH_airport.equals("成都")) {Airport_Code[0]="CTU";}
		else if(ZH_airport.equals("重庆")) {Airport_Code[0]="CKG";}
		else if(ZH_airport.equals("长沙")) {Airport_Code[0]="CSX";}
		else if(ZH_airport.equals("赤峰")) {Airport_Code[0]="CIF";}
		
		//D开头
		else if(ZH_airport.equals("大同")) {Airport_Code[0]="DAT";}
		else if(ZH_airport.equals("大连")) {Airport_Code[0]="DLC";}
		else if(ZH_airport.equals("东营")) {Airport_Code[0]="DOY";}
		else if(ZH_airport.equals("大庆")) {Airport_Code[0]="DQA";}
		else if(ZH_airport.equals("丹东")) {Airport_Code[0]="DDG";}
		else if(ZH_airport.equals("大理")) {Airport_Code[0]="DLU";}
		else if(ZH_airport.equals("敦煌")) {Airport_Code[0]="DNH";}
		else if(ZH_airport.equals("达州")) {Airport_Code[0]="DAX";}
		else if(ZH_airport.equals("稻城")) {Airport_Code[0]="DCY";}
		
		//E开头
		else if(ZH_airport.equals("恩施")) {Airport_Code[0]="ENH";}
		else if(ZH_airport.equals("鄂尔多斯")) {Airport_Code[0]="DSN";}
		else if(ZH_airport.equals("二连浩特")) {Airport_Code[0]="ERL";}
		else if(ZH_airport.equals("额济纳旗")) {Airport_Code[0]="EJN";}
		
		//F开头
		else if(ZH_airport.equals("佛山")) {Airport_Code[0]="FUO";}
		else if(ZH_airport.equals("福州")) {Airport_Code[0]="FOC";}
		else if(ZH_airport.equals("阜阳")) {Airport_Code[0]="FUG";}
		else if(ZH_airport.equals("抚远")) {Airport_Code[0]="FYJ";}
		
		//G开头
		else if(ZH_airport.equals("贵阳")) {Airport_Code[0]="KWE";}
		else if(ZH_airport.equals("桂林")) {Airport_Code[0]="KWL";}
		else if(ZH_airport.equals("广州")) {Airport_Code[0]="CAN";}
		else if(ZH_airport.equals("广元")) {Airport_Code[0]="GYS";}
		else if(ZH_airport.equals("格尔木")) {Airport_Code[0]="GOQ";}
		else if(ZH_airport.equals("赣州")) {Airport_Code[0]="KOW";}
		else if(ZH_airport.equals("固原")) {Airport_Code[0]="GYU";}

		//H开头
		else if(ZH_airport.equals("哈密")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("呼和浩特")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("黑河")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("海拉尔")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("哈尔滨")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("海口")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("黄山")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("杭州")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("邯郸")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("合肥")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("黄龙")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("汉中")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("和田")) {Airport_Code[0]="RLK";}
		else if(ZH_airport.equals("淮安")) {Airport_Code[0]="RLK";}
		
		//J开头
		else if(ZH_airport.equals("鸡西")) {Airport_Code[0]="JXA";}
		else if(ZH_airport.equals("晋江")) {Airport_Code[0]="JJN";}
		else if(ZH_airport.equals("锦州")) {Airport_Code[0]="JNZ";}
		else if(ZH_airport.equals("景德镇")) {Airport_Code[0]="JDZ";}
		else if(ZH_airport.equals("嘉峪关")) {Airport_Code[0]="JGN";}
		else if(ZH_airport.equals("井冈山")) {Airport_Code[0]="JGS";}
		else if(ZH_airport.equals("济宁")) {Airport_Code[0]="JNG";}
		else if(ZH_airport.equals("九江")) {Airport_Code[0]="JIU";}
		else if(ZH_airport.equals("佳木斯")) {Airport_Code[0]="JMU";}
		else if(ZH_airport.equals("济南")) {Airport_Code[0]="TNA";}
		else if(ZH_airport.equals("加格达奇")) {Airport_Code[0]="JGD";}
		else if(ZH_airport.equals("金昌")) {Airport_Code[0]="JIC";}
		else if(ZH_airport.equals("揭阳")) {Airport_Code[0]="SWA";}
		
		//K开头
		else if(ZH_airport.equals("喀什")) {Airport_Code[0]="KHG";}
		else if(ZH_airport.equals("昆明")) {Airport_Code[0]="KMG";}
		else if(ZH_airport.equals("康定")) {Airport_Code[0]="KGT";}
		else if(ZH_airport.equals("克拉玛依")) {Airport_Code[0]="KRY";}
		else if(ZH_airport.equals("库尔勒")) {Airport_Code[0]="KRL";}
		else if(ZH_airport.equals("库车")) {Airport_Code[0]="KCA";}
		else if(ZH_airport.equals("喀纳斯")) {Airport_Code[0]="KJI";}
		else if(ZH_airport.equals("凯里")) {Airport_Code[0]="KJH";}
		
		//L开头
		else if(ZH_airport.equals("兰州")) {Airport_Code[0]="LHW";}
		else if(ZH_airport.equals("洛阳")) {Airport_Code[0]="LYA";}
		else if(ZH_airport.equals("丽江")) {Airport_Code[0]="LJG";}
		else if(ZH_airport.equals("荔波")) {Airport_Code[0]="LLB";}
		else if(ZH_airport.equals("林芝")) {Airport_Code[0]="LZY";}
		else if(ZH_airport.equals("柳州")) {Airport_Code[0]="LZH";}
		else if(ZH_airport.equals("泸州")) {Airport_Code[0]="LZO";}
		else if(ZH_airport.equals("连云港")) {Airport_Code[0]="LYG";}
		else if(ZH_airport.equals("黎平")) {Airport_Code[0]="HZH";}
		else if(ZH_airport.equals("连城")) {Airport_Code[0]="LCX";}
		else if(ZH_airport.equals("拉萨")) {Airport_Code[0]="LXA";}
		else if(ZH_airport.equals("临沧")) {Airport_Code[0]="LNJ";}
		else if(ZH_airport.equals("临沂")) {Airport_Code[0]="LYI";}
		else if(ZH_airport.equals("吕梁")) {Airport_Code[0]="LLV";}
		
		//M开头
		else if(ZH_airport.equals("芒市")) {Airport_Code[0]="LUM";}
		else if(ZH_airport.equals("牡丹江")) {Airport_Code[0]="MDG";}
		else if(ZH_airport.equals("满洲里")) {Airport_Code[0]="NZH";}
		else if(ZH_airport.equals("绵阳")) {Airport_Code[0]="MIG";}
		else if(ZH_airport.equals("梅县")) {Airport_Code[0]="MXZ";}
		else if(ZH_airport.equals("漠河")) {Airport_Code[0]="OHE";}
		
		//N开头
		else if(ZH_airport.equals("南京")) {Airport_Code[0]="NKG";}
		else if(ZH_airport.equals("南充")) {Airport_Code[0]="NAO";}
		else if(ZH_airport.equals("南宁")) {Airport_Code[0]="NNG";}
		else if(ZH_airport.equals("南阳")) {Airport_Code[0]="NNY";}
		else if(ZH_airport.equals("南通")) {Airport_Code[0]="NTG";}
		else if(ZH_airport.equals("南昌")) {Airport_Code[0]="KHN";}
		else if(ZH_airport.equals("那拉提")) {Airport_Code[0]="NLT";}
		else if(ZH_airport.equals("宁波")) {Airport_Code[0]="NGB";}
		
		//P开头
		else if(ZH_airport.equals("攀枝花")) {Airport_Code[0]="PZI";}
		else if(ZH_airport.equals("普洱")) {Airport_Code[0]="SYM";}
		
		//Q开头
		else if(ZH_airport.equals("衢州")) {Airport_Code[0]="JUZ";}    
		else if(ZH_airport.equals("黔江")) {Airport_Code[0]="JIQ";}    
		else if(ZH_airport.equals("秦皇岛")) {Airport_Code[0]="SHP";}  
		else if(ZH_airport.equals("庆阳")) {Airport_Code[0]="IQN";}    
		else if(ZH_airport.equals("且末")) {Airport_Code[0]="IQM";}    
		else if(ZH_airport.equals("齐齐哈尔")) {Airport_Code[0]="NDG";}
		else if(ZH_airport.equals("青岛")) {Airport_Code[0]="TAO";}    
			
		//R开头
		else if(ZH_airport.equals("日喀则")) {Airport_Code[0]="RKZ";}
		
		//S开头
		else if(ZH_airport.equals("深圳")) {Airport_Code[0]="SZX";} 
		else if(ZH_airport.equals("石家庄")) {Airport_Code[0]="SJW";}
		else if(ZH_airport.equals("三亚")) {Airport_Code[0]="SYX";}  
		else if(ZH_airport.equals("沈阳")) {Airport_Code[0]="SHE";}  
		else if(ZH_airport.equals("上海")) {Airport_Code[0]="SHA";}  
		else if(ZH_airport.equals("神农架")) {Airport_Code[0]="HPG";}
		
		//T开头
		else if(ZH_airport.equals("唐山")) {Airport_Code[0]="TVS";}  
		else if(ZH_airport.equals("铜仁")) {Airport_Code[0]="TEN";}  
		else if(ZH_airport.equals("塔城")) {Airport_Code[0]="TCG";}  
		else if(ZH_airport.equals("腾冲")) {Airport_Code[0]="TCZ";}  
		else if(ZH_airport.equals("台州")) {Airport_Code[0]="HYN";}  
		else if(ZH_airport.equals("天水")) {Airport_Code[0]="THQ";}  
		else if(ZH_airport.equals("天津")) {Airport_Code[0]="TSN";}  
		else if(ZH_airport.equals("通辽")) {Airport_Code[0]="TGO";}  
		else if(ZH_airport.equals("吐鲁番")) {Airport_Code[0]="TLQ";}
		else if(ZH_airport.equals("太原")) {Airport_Code[0]="TYN";}  
		
		//W开头
		else if(ZH_airport.equals("威海")) {Airport_Code[0]="WEH";}    
		else if(ZH_airport.equals("武汉")) {Airport_Code[0]="WUH";}    
		else if(ZH_airport.equals("梧州")) {Airport_Code[0]="WUZ";}    
		else if(ZH_airport.equals("文山")) {Airport_Code[0]="WNH";}    
		else if(ZH_airport.equals("无锡")) {Airport_Code[0]="WUX";}    
		else if(ZH_airport.equals("潍坊")) {Airport_Code[0]="WEF";}    
		else if(ZH_airport.equals("武夷山")) {Airport_Code[0]="WUS";}  
		else if(ZH_airport.equals("乌兰浩特")) {Airport_Code[0]="HLH";}
		else if(ZH_airport.equals("温州")) {Airport_Code[0]="WNZ";}    
		else if(ZH_airport.equals("乌鲁木齐")) {Airport_Code[0]="URC";}
		else if(ZH_airport.equals("万州")) {Airport_Code[0]="WXN";}    
		else if(ZH_airport.equals("乌海")) {Airport_Code[0]="WUA";}    
		
		//X开头
		else if(ZH_airport.equals("兴义")) {Airport_Code[0]="ACX";}    
		else if(ZH_airport.equals("西昌")) {Airport_Code[0]="XIC";}    
		else if(ZH_airport.equals("厦门")) {Airport_Code[0]="XMN";}    
		else if(ZH_airport.equals("香格里拉")) {Airport_Code[0]="DIG";}
		else if(ZH_airport.equals("西安")) {Airport_Code[0]="SIA";}    
		else if(ZH_airport.equals("西宁")) {Airport_Code[0]="XNN";}    
		else if(ZH_airport.equals("襄阳")) {Airport_Code[0]="XFN";}
		else if(ZH_airport.equals("锡林浩特")) {Airport_Code[0]="XIL";}
		else if(ZH_airport.equals("西双版纳")) {Airport_Code[0]="JHG";}
		else if(ZH_airport.equals("徐州")) {Airport_Code[0]="XUZ";}    
		
		//Y开头
		else if(ZH_airport.equals("义乌")) {Airport_Code[0]="YIW";}
		else if(ZH_airport.equals("永州")) {Airport_Code[0]="LLF";}
		else if(ZH_airport.equals("榆林")) {Airport_Code[0]="UYN";}
		else if(ZH_airport.equals("扬州")) {Airport_Code[0]="YTY";}
		else if(ZH_airport.equals("延安")) {Airport_Code[0]="ENY";}
		else if(ZH_airport.equals("运城")) {Airport_Code[0]="YCU";}
		else if(ZH_airport.equals("烟台")) {Airport_Code[0]="YNT";}
		else if(ZH_airport.equals("银川")) {Airport_Code[0]="INC";}
		else if(ZH_airport.equals("宜昌")) {Airport_Code[0]="YIH";}
		else if(ZH_airport.equals("宜宾")) {Airport_Code[0]="YBP";}
		else if(ZH_airport.equals("宜春")) {Airport_Code[0]="YIC";}
		else if(ZH_airport.equals("盐城")) {Airport_Code[0]="YNZ";}
		else if(ZH_airport.equals("延吉")) {Airport_Code[0]="YNJ";}
		else if(ZH_airport.equals("玉树")) {Airport_Code[0]="YUS";}
		else if(ZH_airport.equals("伊宁")) {Airport_Code[0]="YIN";}
		else if(ZH_airport.equals("伊春")) {Airport_Code[0]="LDS";}
		
		//Z
		else if(ZH_airport.equals("珠海")) {Airport_Code[0]="ZUH";}  
		else if(ZH_airport.equals("昭通")) {Airport_Code[0]="ZAT";} 
		else if(ZH_airport.equals("张家界")) {Airport_Code[0]="DYG";}
		else if(ZH_airport.equals("舟山")) {Airport_Code[0]="HSN";}  
		else if(ZH_airport.equals("郑州")) {Airport_Code[0]="CGO";}  
		else if(ZH_airport.equals("中卫")) {Airport_Code[0]="ZHY";} 
		else if(ZH_airport.equals("芷江")) {Airport_Code[0]="HJJ";} 
		else if(ZH_airport.equals("湛江")) {Airport_Code[0]="ZHA";}  
		else if(ZH_airport.equals("遵义")) {Airport_Code[0]="ZYI";}  
		else if(ZH_airport.equals("张掖")) {Airport_Code[0]="YZY";}  
		else if(ZH_airport.equals("张家口")) {Airport_Code[0]="ZQZ";}
		
		//国际航向
		else if(ZH_airport.equals("香港")) {Airport_Code[0]="HKG";}   
		else if(ZH_airport.equals("新加坡")) {Airport_Code[0]="SIN";}  
		else if(ZH_airport.equals("澳门")) {Airport_Code[0]="MFM";}    
		else if(ZH_airport.equals("马尼拉")) {Airport_Code[0]="MNL";}  
		else if(ZH_airport.equals("多伦多")) {Airport_Code[0]="YTO";} 
		else if(ZH_airport.equals("济州岛")) {Airport_Code[0]="CJU";}  
		
		else if(ZH_airport.equals("曼谷")) {Airport_Code[0]="BKK";}    
		else if(ZH_airport.equals("台北")) {Airport_Code[0]="TPE";}    
		else if(ZH_airport.equals("大阪")) {Airport_Code[0]="OSA";}    
		else if(ZH_airport.equals("墨尔本")) {Airport_Code[0]="MEL";}  
		else if(ZH_airport.equals("胡志明市")) {Airport_Code[0]="SGN";}
		else if(ZH_airport.equals("高雄")) {Airport_Code[0]="KHH";}    
		
		else if(ZH_airport.equals("首尔")) {Airport_Code[0]="SEL";}    
		else if(ZH_airport.equals("清迈")) {Airport_Code[0]="CNX";}    
		else if(ZH_airport.equals("伦敦")) {Airport_Code[0]="LON";}    
		else if(ZH_airport.equals("温哥华")) {Airport_Code[0]="YVR";}  
		else if(ZH_airport.equals("旧金山")) {Airport_Code[0]="SFO";}  
		else if(ZH_airport.equals("釜山")) {Airport_Code[0]="PUS";}    
		
		else if(ZH_airport.equals("东京")) {Airport_Code[0]="TYO";}    
		else if(ZH_airport.equals("吉隆坡")) {Airport_Code[0]="KUL";}  
		else if(ZH_airport.equals("洛杉矶")) {Airport_Code[0]="LAX";}  
		else if(ZH_airport.equals("巴黎")) {Airport_Code[0]="PAR";}    
		else if(ZH_airport.equals("金边")) {Airport_Code[0]="PNH";}    
		else if(ZH_airport.equals("暹粒")) {Airport_Code[0]="REP";}    
		
		else if(ZH_airport.equals("普吉")) {Airport_Code[0]="HKT";}    
		else if(ZH_airport.equals("悉尼")) {Airport_Code[0]="SYD";}   
		else if(ZH_airport.equals("纽约")) {Airport_Code[0]="NYC";}    
		else if(ZH_airport.equals("槟城")) {Airport_Code[0]="PEN";}    
		else if(ZH_airport.equals("雅加达")) {Airport_Code[0]="JKT";}  
		else if(ZH_airport.equals("法兰克福")) {Airport_Code[0]="FRA";}
	
		else if(ZH_airport.equals("中国")) {Airport_Code[0]="CN";}    
		else if(ZH_airport.equals("韩国")) {Airport_Code[0]="KR";}    
		else if(ZH_airport.equals("泰国")) {Airport_Code[0]="TH";}    
		else if(ZH_airport.equals("美国")) {Airport_Code[0]="US";}    
		else if(ZH_airport.equals("加拿大")) {Airport_Code[0]="CA";}  
		
		else if(ZH_airport.equals("日本")) {Airport_Code[0]="JP";}    
		else if(ZH_airport.equals("澳大利亚")) {Airport_Code[0]="AU";}
		else if(ZH_airport.equals("英国")) {Airport_Code[0]="GB";}    
		else if(ZH_airport.equals("法国")) {Airport_Code[0]="FR";}    
		else if(ZH_airport.equals("马来西亚")) {Airport_Code[0]="MY";}
		
		else{Airport_Code[0]="NOT_INCLUDE";}

	}
	
	
    //获取系统日期
    public String getDate() {
        SimpleDateFormat sDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        return sDateFormat.format(new java.util.Date());
    }

    //获取系统时间
    public String getTime() {
        SimpleDateFormat sDateFormat = new SimpleDateFormat("hh:mm:ss");
        return sDateFormat.format(new java.util.Date());
    }

}